package com.springframework.boot.common.user.entity;


import com.springframework.boot.common.roles.entity.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private String id;
    private String username;
    private String password;
    private String salt;

    //定义角色的集合
    private List<Role> roles;

}
